package com.example.superoa.model.mappers;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;
import com.example.superoa.model.pojos.Position;
import com.example.superoa.model.vo.DeptStaffVo;

@Mapper
public interface PositionMapper {
	public List<Position> findAlls();
	public JSONArray findOne(@Param("position_id")Integer position_id);
	public JSONArray  findStaff(@Param("position_id")Integer position_id);//根据角色id查询
	public JSONArray  findStaffAll();//查询所有员工
	public void deleteStaff(@Param("staffid")Integer staffid,
			@Param("positionid")Integer positionid);
	
	public List<DeptStaffVo> findDept();
	public List<DeptStaffVo> findEmpBydept(@Param("deptid")Integer deptid);
	
	public JSONArray findStaffif(@Param("staffname")String staffname);
	
	public void updaterole(@Param("position_name")String position_name,
			@Param("position_ms")String position_ms,@Param("position_id")Integer position_id);
	public void saveRoleStaff(@Param("staff_id")Integer staff_id,@Param("positionId")Integer positionId);
	public void saveRoleDeapart(@Param("position_id")Integer position_id,@Param("Depart_id")Integer Depart_id);
	public void updateRoleDeapart(@Param("Depart_id")Integer Depart_id,@Param("position_id")Integer position_id);
}
